﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CAPTS_Suite
{
    internal class DataLine
    {

		// data used for linear fit, already delete prefix and fixed the length.
		public int currentLoop;//标识循环次数序号 
        public string time_string;// time in string, if for uV, NA. 
		public int seconds; // time in unit of second, if for uV, NA.
        public double co2; // ppm, or uV
		public double ch4; // ppb
        public double h2o;     // ppt, or uV
		public double n2o; //ppb
		public double nh3; //ppb
        public double temperature;     // oC, or uV
		public double air_pressure;    // kPa, or uV
		public double ppfd;            // micro mol.m-2.s-1, or uV
		public double relative_humidity;// % (0-100), or uV

        //标准差
        public double co2_StdDev;
        public double h2o_StdDev;
        public double ch4_StdDev;
        public double n2o_StdDev;
        public double nh3_StdDev;
        public double temperature_StdDev;
        public double air_pressure_StdDev;
        public double ppfd_StdDev;
        public double relative_humidity_StdDev;

        public void copyData(string time_str, int sec, double co2_t, double ch4_t, double n2o_t, double h2o_t,double nh3_t, double t, double p, double ppf, double rh)
		{
			time_string = time_str;
			seconds = sec;
			co2 = co2_t;
			ch4 = ch4_t;
			n2o = n2o_t;
            h2o = h2o_t;
			nh3 = nh3_t;
            temperature = t;
			air_pressure = p;
			ppfd = ppf;
			relative_humidity = rh;
			
		}
	}
}
